﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace GrandmaSkype
{
    /// <summary>
    /// Interaction logic for SettingsDlg.xaml
    /// </summary>
    public partial class SettingsDlg : Window
    {
        public ObservableCollection<CSkypeUsers> m_SkypeUsers = new ObservableCollection<CSkypeUsers>();

        public SettingsDlg()
        {
            InitializeComponent();

            
            int nUsers = Window1.m_Skype.Friends.Count;
            for (int iCurrUser = 0; iCurrUser < nUsers; iCurrUser++)
            {
                Window1.m_Skype.Friends[iCurrUser].ToString();
                //CSkypeUsers CurrUser
            }
            /*
  '// To query contacts:
  For Each oUser In oSkype.Friends
  Next
*/

            m_ComboSkypeUsers.ItemsSource = m_SkypeUsers;
        }
    }

    public class CSkypeUsers
    {
        public string sUserName { get; set; }
    }

}
